home *** CD-ROM | disk | FTP | other *** search
- Subject: FW_CString::ParseAsUnsignedInteger
- Sent: 6/11/96 6:33 AM
- Received: 6/11/96 9:12 AM
- From: Serge Froment, sfroment@odyssee.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Dear ODF Team:
-
- It would be nice to have a version of FW_CString::ParseAsUnsignedInteger
- (and its friends) that returns true if the value is valid.
-
- FW_Boolean FW_CString::ParseAsUnsignedInteger(unsigned long& value) const
- {
- if (this_is_a_valid_unsigned_integer)
- {
- value = this->ParseAsUnsignedInteger();
- return true;
- }
- else
- return false;
- }
-
- Serge
-
-